package 设计模式.行为型模式.访问者模式;

/**
 * @author MT
 * @date 2019-11-13 18:50
 */
public class ConcreteVisitorA implements Visitor {
    @Override
    public void visit(ConcreteElementA element) {

        System.out.println("具体访问者A访问-->" + element.operationA());
    }

    @Override
    public void visit(ConcreteElementB element) {

        System.out.println("具体访问者A访问-->" + element.operationB());
    }
}
